<template>
  <div class="wrapper">
    <div class="wrapper">
      <div class="nav">
        <div class="item" v-for="(item, index) in navData" :key="index">
          <router-link :to="item.path">{{ item.title }}</router-link>
        </div>
      </div>
      <div class="app-content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import {
  navData
} from "@/untils/nav"
import "./assets/css/global.css"
export default {
  name: 'App',
  components: {},
  setup() {
    return {
      navData,
    }
  }
}
</script>

<style scoped>
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.app-content {
  width: 375px;
  height: 700px;
  border: 1px solid black;
}

.app-icon {
  margin-top: 12px;
}

.app-icon img {
  width: 24px;
  height: 24px;
}
.wrapper {
    display: flex;
    flex-flow: row;
  }
/* body {
    margin: 0;
    padding: 0;
  }

  .wrapper {
    display: flex;
    flex-flow: row;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10%;
    height: 969px;
    background-color: #eee;
  }
  .nav .item{
    padding: 10px;
  }
  .nav .item a{
    color: black;
    text-decoration: none;
  }
  .app-content {
    width: 90%;
  } */
</style>